INCLUDEDIR=-I/home/chen/code/cpluspluscode/vscode/094semaphore
LIBDIR=-L/home/chen/code/cpluspluscode/vscode/094semaphore
# 指定编译的目标文件
all:product consume

product:product.cpp circle_queue.hpp
	g++ -o product product.cpp circle_queue.hpp $(INCLUDEDIR) $(LIBDIR) -l csemp
	echo $(LD_LIBRARY_PATH)

consume:consumer.cpp circle_queue.hpp
	g++ -o consume consumer.cpp circle_queue.hpp $(INCLUDEDIR) $(LIBDIR) -l csemp
	echo $(LD_LIBRARY_PATH)
	
# clean用于清理编译目标文件，仅在make clean才会执行
clean:
	rm -f product consume